import request from '@/utils/request'

export const listProcess = (params) => {
  return request({
    url: '/person/excavationProcess/list',
    method: 'get',
    params
  })
}

// 查询掘进工序详细
export const getProcess = (id) => {
  return request({
    url: '/person/excavationProcess/' + id,
    method: 'get'
  })
}

// 新增掘进工序
export const addProcess = (data) => {
  return request({
    url: '/person/excavationProcess',
    method: 'post',
    data
  })
}

// 修改掘进工序
export const updateProcess = (data) => {
  return request({
    url: '/person/excavationProcess',
    method: 'put',
    data
  })
}

// 删除掘进工序
export const delProcess = (id) => {
  return request({
    url: '/person/excavationProcess/' + id,
    method: 'delete'
  })
}

export const getActive = () => {
  return request({
    url: '/person/contractor/getActive',
    method: 'get'
  })
}